package com.puti.system;

import com.puti.common.security.annotation.EnableCustomConfig;
import com.puti.common.security.annotation.EnableRyFeignClients;
import com.puti.common.swagger.annotation.EnableCustomSwagger2;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.client.SpringCloudApplication;


@EnableCustomConfig
@EnableCustomSwagger2
@EnableRyFeignClients
@SpringCloudApplication
public class WeChatPayNativeApp extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(WeChatPayNativeApp.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(WeChatPayNativeApp.class);
    }
}
